Yougems is a powerful documentation and diagramming library designed to help developers create interactive and visually appealing documentation. It supports various diagram types, including flowcharts, sequence diagrams, and class diagrams, making it easy to visualize complex concepts.
- Responsive design with mobile-first approach
- Dark/Light theme switching
- Client-side search functionality
- Auto-generated table of contents
- Collapsible sidebar navigation
- Performance optimizations
Yougems is a comprehensive documentation and diagramming solution that provides powerful tools for creating interactive documentation, flowcharts, sequence diagrams, and more.
More About Yougems
Yougems combines the power of markdown documentation with advanced diagramming capabilities, making it easy to create professional documentation that includes visual elements.
Intro Getting Started
Get started by following these simple installation steps:
Purpose:
Shows users how to implement Yougems immediately after installation.
Structure:
Section container with quick-start heading and anchor ID
Action-oriented introduction promising rapid setup
Code block featuring:
JavaScript language indicator
More complex copy button with escaped newlines (\n)
Multi-line code example showing import, configuration, and initialization
How They Work Together
These sections create a linear workflow:
Install the package (Installation section)
Implement basic usage (Quick Start section)
Key Features
Interactive Elements:
Copy buttons with data-copy attributes for one-click copying
Proper syntax highlighting preparation with language indicators
User Experience:
Minimal friction from installation to working code
Clear visual separation between terminal commands and JavaScript code
Progressive complexity (simple install → basic implementation)
npm install my-docs-library
Here's how to get up and running quickly:
import MyLibrary from 'my-docs-library';
const instance = new MyLibrary({
theme: 'dark',
responsive: true
});
instance.init();
Create beautiful flowcharts using simple syntax:
Flowchart
flowchart TD
A[Start] --> B{Decision?}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
C --> E[End]
D --> E
Document interactions between different components:
Sequence Diagram
sequenceDiagram
participant A as Alice
participant B as Bob
A->>B: Hello Bob, how are you?
B-->>A: Great!
Model your application's structure with class diagrams:
Class Diagram
classDiagram
class Animal {
+String name
+makeSound()
}
class Dog {
+bark()
}
Animal <|-- Dog
Model your application's structure with Packet:
Packet 🔥
Model your application's structure with Other Examples:
Other Examples 🔥
Configure Yougems with these basic options:
{
"theme": "light",
"responsive": true
}
For more complex use cases, explore these advanced configuration options:
Available configuration parameters and their usage:
theme
- Set the visual theme (light/dark)responsive
- Enable responsive behaviorautoResize
- Automatically resize diagramsshowGrid
- Display background grid
Customize the appearance with built-in themes or create your own:
- Light Theme
- Dark Theme
- High Contrast
- Custom Themes
Complete reference of all available methods in the API:
init()
- Initialize the Yougems instancerender()
- Render diagramsdestroy()
- Clean up resourcessetTheme(theme)
- Change theme dynamically
Event system documentation and usage examples:
ready
- Fired when Yougems is initializedrender
- Fired when a diagram is renderederror
- Fired when an error occursthemeChange
- Fired when theme changes
All configurable properties and their default values:
Property | Type | Default | Description |
---|---|---|---|
theme | string | 'light' | Visual theme |
responsive | boolean | true | Enable responsive behavior |
Integrate Yougems with popular charting libraries:
- Chart.js
- Highcharts
- Google Charts
Step-by-step guides to help you get the most out of Yougems:
Understand how to use the Yougems API effectively:
Learn how to make API calls to Yougems:
fetch('https://api.yougems.com/v1/docs')
.then(response => response.json())
.then(data => console.log(data));
Configure the Yougems API settings:
Obtain your API key from the Yougems dashboard and set it in your configuration:
{
"apiKey": "YOUR_API_KEY"
}
Explore the available configuration options for Yougems:
theme
- Set the visual theme (light/dark)responsive
- Enable responsive behavior
Frequently asked questions about Yougems:
Learn how to contribute to the Yougems project:
Follow these steps to get started with contributing:
git clone https://github.com/your-repo/yougems.git
cd yougems
npm install
Contribute your diagrams to the Yougems project:
Follow these guidelines when creating diagrams:
- Use clear and descriptive labels
- Keep diagrams simple and focused
- Ensure diagrams are responsive
We welcome your questions and suggestions:
Reach out to us via the following channels:
- Email: support@yougems.com
- Twitter: @yougems
Your security is important to us:
If you discover a security vulnerability, please report it:
**Security Vulnerability Report**
**Description:** [Provide a brief description of the vulnerability]
**Steps to Reproduce:** [Detail the steps to reproduce the vulnerability]
**Impact:** [Explain the potential impact of the vulnerability]
**Mitigation:** [Suggest mitigations or fixes]
**Reporter Information:** [Optional: Your name and contact information]
Stay updated with the latest announcements:
We are excited to announce the release of Yougems version 2.0. This major update includes:
- New diagram types: Gantt charts, Pie charts
- Enhanced API with new endpoints
- Improved performance and stability
Read the latest blog posts:
Discover the new features and improvements in Yougems 2.0:
Read more